import api from "../http";

export const register = (params: any) => {
  return api.post("/api/users/register", params);
};
export const login = (params: any) => {
  return api.post("/api/users/login", params);
};

export const updateUserInfo = (params: any) => {
  return api.post("/api/users/update", params);
};

export const getUserInfo = () => {
  return api.get("/api/users/getUserInfo");
};

export const verifyPasswordApi = (params: any) => {
  return api.post("/api/users/verifyPassword", params);
};
